package com.trip.driver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.trip.common.po.CarInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hr
 * @since 2024-09-05
 */
@Repository
@Mapper
public interface CarInfoMapper extends BaseMapper<CarInfo> {
    //司机车辆注册方法
    int regCarInfo(CarInfo carInfo);
    //根据司机ID获取其车辆信息
    List<CarInfo> getCarInfoByDriver(String driver_id);
}
